<template>
  <PageListContainer>
    <div class="base-block">
      <k-search :model="state.params" @search="methods.onSearch" @reset="methods.onReset">
        <el-form-item label="兑换码搜索" label-width="100px">
          <el-input v-model="state.params.genCode" clearable placeholder="请输入要查询的兑换码" />
        </el-form-item>

      </k-search>
    </div>
    <div class="base-block">
      <KTable v-loading="state.loading" v-bind="tableState" v-on="tableEvent" />
    </div>
  </PageListContainer>
</template>

<script setup lang="ts">
import { useTableList } from './hooks/use-table';
defineOptions({ name: 'AgencyKgjAgentExchangeCode' });
const { state, tableState, tableEvent, ...methods } = useTableList({});
</script>
